<!-- display the partial associated for this blast...-->
<div id="blast_preview_partial_hidden" style="display:none">
	<% if @blast.partial_exists? -%>
	<%= render(:partial => "blast_mailer/#{@blast.partial!}", :locals => {:blast=>@blast}) -%>
	<%end -%>
</div>
<%= error_messages_for :blast %>
<% form_for(@blast, :html => {:id=>"_blast_", :onsubmit=>"return blast_create(this);"}) do |f| %>
  <p>
    <b>Recipients</b><br />
    <%= f.text_area :to %>
  </p>
  <p>
    <span id="blast_from_count" class="txt_counter"></span><b>From</b><br/>
    <%= f.text_field :from%>
  </p>
  <p>
  	<span id="blast_subject_count" class="txt_counter"></span><b>Subject</b><br/>
    <%= f.text_field :subject %>
  </p>
  <p>
    <b>Message</b><br />
    <%= f.text_area :message %>
  </p>
	<%= f.hidden_field :url %>
	<%= f.hidden_field :blasted_id %>
	<%= f.hidden_field :blasted_type %>
	<%= f.hidden_field :partial %>
  <p>
    <%= f.submit "Send", :id=>"blast_send" %>
  </p>
<% end %>
